package cn.yunhe.model;
import java.util.HashSet;
import java.util.Set;

/**
 * Books entity. @author MyEclipse Persistence Tools
 */

public class Books implements java.io.Serializable {

    // Fields

    private Integer id;
    private Categories categories;
    private Publishers publishers;
    private String title;
    private String author;
    private Integer publishdate;
    private String isbn;
    private String price;
    private Integer categoryid;
    private Set orderbooks = new HashSet(0);

    // Constructors

    /** default constructor */
    public Books() {
    }

    /** minimal constructor */
    public Books(Categories categories, Publishers publishers, String title,
                 String author, Integer publishdate, String isbn, String price,
                 Integer categoryid) {
        this.categories = categories;
        this.publishers = publishers;
        this.title = title;
        this.author = author;
        this.publishdate = publishdate;
        this.isbn = isbn;
        this.price = price;
        this.categoryid = categoryid;
    }

    /** full constructor */
    public Books(Categories categories, Publishers publishers, String title,
                 String author, Integer publishdate, String isbn, String price,
                 Integer categoryid, Set orderbooks) {
        this.categories = categories;
        this.publishers = publishers;
        this.title = title;
        this.author = author;
        this.publishdate = publishdate;
        this.isbn = isbn;
        this.price = price;
        this.categoryid = categoryid;
        this.orderbooks = orderbooks;
    }

    // Property accessors

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Categories getCategories() {
        return this.categories;
    }

    public void setCategories(Categories categories) {
        this.categories = categories;
    }

    public Publishers getPublishers() {
        return this.publishers;
    }

    public void setPublishers(Publishers publishers) {
        this.publishers = publishers;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getPublishdate() {
        return this.publishdate;
    }

    public void setPublishdate(Integer publishdate) {
        this.publishdate = publishdate;
    }

    public String getIsbn() {
        return this.isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Integer getCategoryid() {
        return this.categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public Set getOrderbooks() {
        return this.orderbooks;
    }

    public void setOrderbooks(Set orderbooks) {
        this.orderbooks = orderbooks;
    }

}
